import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MapTravelDemo2 {
    public static void main(String[] args) {
        Map<String,Integer> map = new HashMap<>();
        map.put("Zhang San",12);
        map.put("Li Si",20);
        map.put("Wang Wu",16);
        Set<Map.Entry<String, Integer>> entrySet = map.entrySet();
        for(Map.Entry<String, Integer> me : entrySet){
            System.out.println(me.getKey() + " " + me.getValue());
        }

    }
}
